/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: xiaotutu
 * Date: 2024-11-22
 * Time: 10:03
 */
public class Test {
    public static void main(String[] args) {
        BinaryTree binaryTree = new BinaryTree();
        BinaryTree.TreeNode root = binaryTree.createTree();

        System.out.println("===前序遍历===");
        binaryTree.preOrder(root);
        System.out.println();
        System.out.println("===前序遍历非递归===");
        binaryTree.preOrderNor(root);
        System.out.println();
        /*System.out.println("===中序遍历===");
        binaryTree.inOrder(root);
        System.out.println();
        binaryTree.inOrderNor(root);
        System.out.println();
        System.out.println("===后序遍历===");
        binaryTree.postOrder(root);
        System.out.println();
        binaryTree.postOrderNor(root);*/
    }
}
